<?php
/**
 * Config
 *
 * @Description 描述
 * @Author look
 * @CreateTime 2022/2/23
 */

namespace app\admin\controller\sys;

use app\common\Attributes\Method;
use app\common\base\ControllerBase;
use app\common\Attributes\Auth;
use app\common\utils\Captcha;

/**
 * Class Config
 */
class Config extends ControllerBase {

    #[Auth('admin/sys.config/add')]
    #[Method('POST','GET')]
    public function add() {
        $captcha = (new Captcha())->initialize();
        var_dump($captcha->getCode());
        var_dump($captcha->getAttrs());
        var_dump($captcha->getData());
        var_dump($captcha->getUniqid());
        return $this->success();
    }
}